package kevin.framework.basic.common.xls;

/**
 * @ClassName: CustomCell
 * @Description: 自定义的单元格，可跨行、跨列
 * @author kevin.huang
 * @date 2015-2-27 上午10:38:54
 */
public class CustomCell {

	private String text;// 标题
	private int colspen;// 跨列数
	private int rowspen;// 跨行数

	private boolean rowGroup = false;// 行分组合并 默认false

	/**
	 * @Title: isRowGroup @Description: 行分组合并 默认false @return @throws
	 */
	public boolean isRowGroup() {
		return rowGroup;
	}

	/**
	 * @Title: isRowGroup @Description: 行分组合并 默认false @return @throws
	 */
	public void setRowGroup(boolean rowGroup) {
		this.rowGroup = rowGroup;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getColspen() {
		return colspen;
	}

	public void setColspen(int colspen) {
		this.colspen = colspen;
	}

	public int getRowspen() {
		return rowspen;
	}

	public void setRowspen(int rowspen) {
		this.rowspen = rowspen;
	}

	public CustomCell(String text) {
		this.text = text;
	}

	/**
	 * <p>
	 * Title:
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param text
	 * @param isGroup 是否启用相同数据行合并
	 */
	public CustomCell(String text, boolean isGroup) {
		this.text = text;
		this.rowGroup = isGroup;
	}

	/**
	 * @param text    标题
	 * @param colspen 跨列数
	 * @param rowspen 跨行数
	 */
	public CustomCell(String text, int colspen, int rowspen) {
		this.text = text;
		this.colspen = colspen;
		this.rowspen = rowspen;
	}
}
